package com.yb0os1;

import com.yb0os1.context.ClassPathXmlApplicationContext;
import com.yb0os1.exception.BeanException;

public class Main {
    public static void main(String[] args) throws BeanException {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("beans.xml");
        User user = (User) classPathXmlApplicationContext.getBean("user");
        user.test();
        System.out.println(user);
    }
}